import { request } from './request.js';
//获取赛程列表
export const getScheduleList = (params) => {
  return request({
    url: '/Maintain/SelectSchedule/btn-schedulesearch',
    method: 'get',
    params,
  });
};
//新增赛程
export const addSchedule = (data) => {
  return request({
    url: '/Maintain/AddSchedule/btn-scheduleadd',
    method: 'post',
    data,
  });
};
//修改赛程
export const editSchedule = (data) => {
  return request({
    url: '/Maintain/UpdateSchedule/btn-scheduleupdate',
    method: 'post',
    data,
  });
};
//删除赛程
export const delSchedule = (params) => {
  return request({
    url: '/Maintain/DeleteSchedule/btn-venusdelete',
    method: 'get',
    params,
  });
};
//批量插入赛程
export const addScheduleList = (data) => {
  return request({
    url: '/Maintain/AddScheduleList/btn-scheduleload',
    method: 'post',
    data,
  });
};
